<?php
/**
 * author      :chenwenwen
 * createTime  :2020-04-05 21:39
 * description :
 */
use think\facade\Route;

Route::rule('demo/test','index/hello','GET');
Route::rule('index/detail','index/d','GET')->middleware(app\demo\middleware\Detail::class);